﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Details.aspx.cs" Inherits="FisheryPlatform.Web.Admin.Product.Details" %>

<%@ Register TagName="Style" TagPrefix="Menu" Src="~/Modules/Menu/StyleMenu.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <Menu:Style runat="server" ID="menuStyle" Title=""></Menu:Style>
</head>
<body>
    <div class="wrapper">
        <div class="content">
            <h3 class="pro_title">
                <%= HttpUtility.HtmlEncode(productInfo.Title)%>
                <span class="detail_pub_time">&nbsp;<%= productInfo.CreateDate.ToString() %>
                    &nbsp;状态：<%=FisheryPlatform.Bussiness.Product.ProductManager.GetProductStatusText(productInfo.Status)%></span>
                <a href="javascript:void(0);" onclick="productManager.setStatus(<%=productInfo.ProductId %>,<%=productInfo.Status== FisheryPlatform.Entity.ProductStatusEnum.Publishing?2:1 %>,'<%=productInfo.CreateDate.ToString() %>')">
                    <%=productInfo.Status == FisheryPlatform.Entity.ProductStatusEnum.Publishing ? "下线" : "上线"%></a>&nbsp;|&nbsp;
                <a href="javascript:void(0);" onclick="productManager.setStatus(<%=productInfo.ProductId %>,3,<%=productInfo.CreateDate.ToString() %>)">
                    删除</a><span class="pro_pub_date">&nbsp;<%= productInfo.CreateDate.ToString() %></span></h3>
            <div class="pro_detail">
                <div class="pro_info">
                    <ul>
                        <li>类别：<%=HttpUtility.HtmlEncode(FisheryPlatform.Bussiness.ShareCode.ShareCodeManager.GetShareCodeById(productInfo.CategoryId).Name)%></li>
                        <li>地点：<%=HttpUtility.HtmlEncode(FisheryPlatform.Bussiness.ShareCode.ShareCodeManager.GetShareCodeById(productInfo.AreaId).Name)%></li>
                        <li>供需：<%= HttpUtility.HtmlEncode(productInfo.Type==1?"出售":"求购") %>
                        </li>
                        <li>价格：<%= productInfo.MinPrice %>-<%=productInfo.MinPrice %>
                            元 </li>
                        <li>联系人：<%=productInfo.Contact %></li>
                        <li>联系电话：<%=productInfo.Mobile %><%=string.IsNullOrEmpty(productInfo.Phone) ? "" : "," + productInfo.Phone%></li>
                    </ul>
                </div>
            </div>
            <div>
                <h3>
                    描述：</h3>
                <div>
                    <%= HttpUtility.HtmlEncode(productInfo.Description) %></div>
            </div>
        </div>
    </div>
</body>
</html>
<script type="text/javascript" src="../Js/Product/Action.js"></script>
